package org.unideb.beerfactory.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.unideb.beerfactory.dto.UserDTO;
import org.unideb.beerfactory.entity.User;

@Repository
public interface UserDao extends PagingAndSortingRepository<User, Long>,
		BaseConvertDao<User, UserDTO> {

	User findUserByLogin(String login);

	Page<User> findByLoginStartsWith(String filter, Pageable pageable);

}
